cmake_minimum_required(VERSION 2.8.4)
project(DatabaseLib)

set (MY_OUT_DIR "${PROJECT_SOURCE_DIR}/../../../out")
set (LIBRARY_OUTPUT_PATH "${MY_OUT_DIR}")

include_directories("${PROJECT_SOURCE_DIR}/include/")
include_directories("${PROJECT_SOURCE_DIR}/../../External/mysql-connector-c++/")
include_directories("${PROJECT_SOURCE_DIR}/../../External/mysql-connector-c++/driver/")
include_directories("${PROJECT_SOURCE_DIR}/../../External/logog/include/")
include_directories("${PROJECT_SOURCE_DIR}/../../Internal/UtilsLib/include/")

AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/src/" DatabaseLib_SOURCES) 

add_library(${PROJECT_NAME} STATIC ${DatabaseLib_SOURCES})
target_link_libraries (${PROJECT_NAME} mysqlcppconn-static) 

